package pta.MOOC.ch02.ex01;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();
        double y = scanner.nextDouble();
        double sum = x + y;
        System.out.println(sum);
        double sqrt = Math.sqrt(sum);
        System.out.println(sqrt);
        String sqrtStr = String.valueOf(sqrt);
        String result = sqrtStr.substring(0, Math.min(6, sqrtStr.length()));
        System.out.println(result);
        scanner.close();
    }
}
